﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.IO;
using System.Text;

namespace VietImage.Logs
{
    public class VietImageDB_Log
    {
        public static void WriteLog(String str)
        {
            String filename = AppDomain.CurrentDomain.BaseDirectory + "\\Log\\VietImageDB_Log.txt";

            String no = "No.";

            //using (FileStream fs = new FileStream(filename, FileMode.Append))
            //{
            //    String strLog = "[" + DateTime.Now.ToString("hh:mm:ss dd-MM-yyyy") + "] " + no + fs.Position + " - " + str;
            //    fs.Lock(fs.Position, strLog.Length);

            //    using (StreamWriter sw = new StreamWriter(fs, Encoding.UTF8))
            //    {
            //        //k bít
            //        sw.WriteLine(strLog);
            //    }

                
            //}
        }

        
    }
}